package edu.sctu.practice.class01.huangtianlin.assign3.two;

/**
 * Created by Administrator on 2015/10/22.
 */
public class EqualArea {

   static double object1Area;
    static  double object2Area;

    public static boolean equalArea(GeomertricObject object1,GeomertricObject object2){

        object1Area = object1.findArea();
        object2Area = object2.findArea();

        if (object1Area >  object2Area){

            return true;

        }else {

            return false;

        }



    }


}
